<%@ page language="java" contentType="text/html; charset=utf-8"    pageEncoding="utf-8"%>
<%@include file="header.jsp"%>
<style type="text/css">
<!--
body {
	margin-left: 0px;
	margin-top: 0px;
	margin-right: 0px;
	margin-bottom: 0px;
}
.STYLE1 {
	color: #666666;
	font-weight: bold;
}
.STYLE5 {color: #666666}
.STYLE6 {
	color: #135294;
	font-weight: bold;
}
-->
</style>
<form method="post" action="memberList.action">
 <table width="95%" border="1" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF" align="center">
 	<tr>
 		<td  colspan="4" background="images/bg_table.jpg" bgcolor="#ECEAE6" align="center">查询</td>
 	</tr>
	<tr bgcolor='#F1F3F5'>
 		<td width="11%">会员类型</td>
 		<td width="39%">
 			<select name="level" id="level">
				<option value="-1" <s:if test='memberBean.level==-1'>selected</s:if>>请选择会员类型</option>
				<option value="1" <s:if test='memberBean.level==1'>selected</s:if>>积分会员</option>
				<option value="2" <s:if test='memberBean.level==2'>selected</s:if>>VIP会员</option>
				<option value="0" <s:if test='memberBean.level==3'>selected</s:if>>注册会员</option>
			</select>
 		 
	  </td>
 		<td width="11%">会员名</td> 		 
	  <td width="39%"><input type="text" name="name" value="${name }"/></td>
	</tr>	
	<tr>
		<td>会员卡号</td>
		<td><input type="text" name="cardId" value="${cardId }"/></td>
		<td>&nbsp;</td>
		<td>&nbsp;</td>
		
	</tr>
	<tr>
		<td  colspan="4"    nowrap background="images/bg_table.jpg" bgcolor="#ECEAE6"  align="center"><input type="submit" /></td>
	</tr>
</table> 
</form>
<br/>

<div align="center">会员列表</div>
 <table width="95%"  border="0" cellpadding="3" cellspacing="2" bgcolor="#FFFFFF" align="center">
   <tr>
     <td nowrap background="images/bg_table.jpg" bgcolor="#ECEAE6">名称</td>
     <td nowrap background="images/bg_table.jpg" bgcolor="#ECEAE6">卡号</td>
     <td nowrap background="images/bg_table.jpg" bgcolor="#ECEAE6">操作</td>
   </tr>
   <s:iterator value="members">
     <tr bgcolor='#F1F3F5' onmouseover = "this.style.backgroundColor = '#FFDCB0'" onmouseout = "this.style.backgroundColor = ''" style='cursor:hand'>
       <td><s:property value="name"/></td>
       <td><s:property value="cardId"/></td>
       <td>
       		<a href="beforeUpdateMember.action?memberId=<s:property value='id'/>">编辑</a> 
       		<a href="deleteMember.action?memberId=<s:property value='id'/>" onclick="javascript:if(confirm('确定删除该会员吗')) return true; else return false;">删除</a>
       		<a href="loadMemberDetail.action?memberId=<s:property value='id'/>">详细信息</a> 
       		<a href="loadPurchaseHistory.action?memberId=<s:property value='id'/>">购机历史</a> 
      </td>
     </tr>
   </s:iterator>
   <tr>
     <td colspan="3" nowrap  bgcolor='#E4EDF9'>
     	<a href="memberList.action?currentPage=<s:property value='prevPage'/>">上一页</a> 
     	<a href="memberList.action?currentPage=<s:property value='nextPage'/>">下一页</a>
     	共 <s:property value='totalPage'/>页 
     	<a href="member.action">新增</a>
     </td>
   </tr>
</table>
 